import {defineStore} from 'pinia';
import {computed, ref} from 'vue';

export const useStore = defineStore('store', () => {
    const token = ref('')
    const getToken = computed(() => token.value)
    const setToken = value => {
        token.value = value
    }
    return {token, getToken, setToken}
}, {unistorage: true});